solution "ServerStudy"
    includedirs {"src"}
    platforms {"x64"}
    configurations {"Debug", "Release"}
    flags {"Symbols", "ExtraWarnings"} --编译选项-g -Wall
    rtti "Off" --关闭rtti
    defines {"CLIENT"}
    configuration "Debug"
        defines {"DEBUG"}
    configuration "Release"
        flags {"OptimizeSpeed"}--编译选项-o3
        defines {"NDEBUG"}
    if os.is("windows") then 

    elseif os.is("linux") then

    end
project "core"
    language "C++"
    kind "StaticLib"    
    files {"src/core/*"}
    targetdir "lib"

project "network"
    language "C++"
    kind "StaticLib"
    files { "src/network/*.h", "src/network/*.cpp" }
    links { "core" }
    targetdir "lib"

project "protocol"
    language "C++"
    kind "StaticLib"
    files { "src/protocol/*.h", "src/protocol/*.cpp" }
    links { "core", "network" }
    targetdir "lib"

project "ClientServer"
    language "C++"
    kind "StaticLib"
    files { "src/ClientServer/*.h", "src/ClientServer/*.cpp" }
    links { "core", "network", "protocol" }
    targetdir "lib"


--ALL TEST PROJECT--
project "TestCore"
    language "C++"
    kind "ConsoleApp"
    files {"tests/core/*"}
    links {"core"}
    targetdir "bin"

project "TestNetwork"
    language "C++"
    kind "ConsoleApp"
    files { "tests/network/Test*.cpp" }
    links { "core", "network", "protocol", "ClientServer" }
    targetdir "bin"



    